<?php
/**
 * 友链
 *
 * @package custom
 */
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<header class="article-header-bg page-friend-bg">
	<figure>
            <!-- 输出第一张缩略图 -->
            <img data-src="<?php echo _getThumbnails($this)[0] ?>" alt="<?= $this->title ?> 封面图" class="cover-image">
            <!-- 占位图 -->
            <div class="dynamic-background"></div>
		    <i class="loading">封面图加载中</i>
	</figure>
	<hgroup class="friend-header-content">
	    <section class="friend-list">
	        <?php
                            $mypattern = <<<eof
	        <div href="{url}" class="friend-card" target="_blank">
    	        <button class="mail">
    	            
    	        </button>
    	        <div class="profile-pic">
    	            <img src="{image}">
    	        </div>
    	        <div class="bottom">
    	            <div class="content">
                        <span class="name">{name}</span>
                        <span class="description">{description}</span>
                    </div>
        	        <div class="bottom-bottom">
                            <a href="{url}" target="_blank">
                        <button class="button">
                             前往
                        </button>
                            </a>
                    </div>
    	        </div>
	        </div>
eof;
                            Links_Plugin::output($mypattern, 0, "");
                            ?>
            
	    </section>
        <section class="page-friend-wrapper">
        	<article class="page-friend-content">
                <div class="text-layout">
                    <?php $this->content(); ?>
                </div>
        	</article>
        </section>
        
	</hgroup>
</header>

    <?php $this->need('layout/footer.php');?>
<?php $this->need('footer.php');?>